package com.itheima.zixi2.ZuoYe3;

public class Test {
    public static void main(String[] args) {
        IdCard card1 = new Glodcard("00001","CH",182,1000);
        IdCard card2 = new Glodcard("00002","CE",183,100);
        IdCard card3 = new Silvercard("00003","CF",184,300);
        Glodcard.paymoney(((Glodcard)card1));
        Glodcard.paymoney(((Glodcard)card2));
        Silvercard.paymoney(((Silvercard)card3));

    }
}
